package com.dgut.smart_house.service;

import com.dgut.smart_house.domain.DatasForKeyCard;
import com.dgut.smart_house.domain.KeyCard;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface KeyCardService {

    public KeyCard findCardByKey(int keyId);

    public List<KeyCard> findAllCard(int fromUser);

    public Integer createCardMaster(KeyCard keyCard);

    public Integer deleteCardMaster(int keyId);

    public Integer updateCardMaster(String cardDesc,int keyId);

    public int createData(KeyCard keyCard);

    public PageInfo findAllCardLog(int fromUser, int pageNo, int pageSize);
}
